package com.hui.security.sys.mapper;

import com.hui.security.sys.entity.DataRule;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface DataRuleMapper {
    int deleteByPrimaryKey(String ruleId);

    int insert(DataRule record);

    int insertSelective(DataRule record);

    DataRule selectByPrimaryKey(String ruleId);

    int updateByPrimaryKeySelective(DataRule record);

    int updateByPrimaryKey(DataRule record);

    int batchInsert(@Param("recordList") List<DataRule> recordList);

    int batchDelete(@Param("ids") String[] ids);

    int batchUpdate(@Param("recordList") List<DataRule> recordList);

    DataRule selectByRuleName(@Param("ruleName") String ruleName);

    List<DataRule> selectAll();
}